This example demonstrates the differences between the textContent and innerHTML property.

Click the button get the text content or HTML content of the ul element.

Note: The textContent property is not supported in Internet Explorer 8 and earlier.